package com.yjt.gcss.gddw.common.dao;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.hibernate.criterion.MatchMode;
import org.hibernate.criterion.Order;
import org.springframework.stereotype.Service;

import com.yjt.common.hibernate.base.AbstractDaoImpl;
import com.yjt.common.hibernate.base.DaoException;
import com.yjt.gcss.gddw.common.bean.domain.InfoSsxy;

@Service(InfoSsxyDao.BEAN_PACKAGE_NAME)
public class InfoSsxyDao extends AbstractDaoImpl {

	public static final String BEAN_PACKAGE_NAME = "com.yjt.gcss.gddw.common.dao.InfoSsxyDao";

	public InfoSsxyDao(){

	}

	public InfoSsxy getBeanById(String id) throws DaoException {
		return (InfoSsxy) getBeanById(BEAN_PACKAGE_NAME, id, false);
	}
	
	public InfoSsxy getBeanByIdForUpdate(String id) throws DaoException {
		return (InfoSsxy) getBeanById(BEAN_PACKAGE_NAME, id, true);
	}

	@SuppressWarnings("rawtypes")
	public Collection getAll() throws DaoException {
		return getAll(BEAN_PACKAGE_NAME);
	}

	@SuppressWarnings("rawtypes")
	public InfoSsxy getBeanByParams(String hqlName,ArrayList paraList) throws DaoException{
		return (InfoSsxy) getProtoBeanByParams(hqlName,paraList);
	}

	public InfoSsxy getBeanByBean(InfoSsxy bean, MatchMode mode) throws DaoException{
		return (InfoSsxy) getProtoBeanByBean(bean, mode);
	}
	  
	public InfoSsxyDao setOrder(Order order){
		return (InfoSsxyDao)super.addOrder(order);
	}
	
	
}